//导入其他组件
import React from "react";
import { BrowserRouter as Router, Route, Redirect } from "react-router-dom";
import {List} from 'react-virtualized';

// 导入and样式
import "antd-mobile/dist/antd-mobile.css";
import "./assets/fonts/iconfont.css";

//导入其他组件
import Main from "./page/Main";
import Map from "./page/Sub/Map";
import CityList from "./page/Sub/CityList"

export const App = () => (
  <Router>
    <div className="app">
       
       <Route path="/" exact render={()=><Redirect to="/home" />}></Route>
      <Route path="/home" component={Main} />
      <Route path="/map" component={Map} />
      <Route path="/citylist" component={CityList} />

    </div>
  </Router>
);

export default App;
